package com.zhongxi.guoyuan.utils;

import android.content.Context;
import android.telephony.TelephonyManager;

import com.zhongxi.guoyuan.application.MyApplication;

/**
 * Created by Administrator on 2016/11/14.
 */

public class DeviceUtils {

    public static String getDeviceUUID(MyApplication myApplication) {

        TelephonyManager telephonyManager;
        telephonyManager = (TelephonyManager) myApplication.getSystemService(Context.TELEPHONY_SERVICE);
        String uuid = telephonyManager.getDeviceId();
        return uuid;
    }

    public static String getSimOperatorName(MyApplication myApplication) {

        TelephonyManager telephonyManager;
        telephonyManager = (TelephonyManager) myApplication.getSystemService(Context.TELEPHONY_SERVICE);
        String operName = telephonyManager.getSimOperatorName();
        return operName;
    }

}
